package com.zfk.transaction.mapper;

import com.zfk.transaction.entity.chat.ChatContent;
import com.zfk.transaction.entity.chat.ChatSeller;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChatMapper {

    List<ChatSeller> getChatByUserId(int user_id);

    List<ChatContent> getChatMessage(@Param("user_id") int user_id,@Param("seller_id") int seller_id);

    int addChatSeller(ChatSeller chatSeller);

    // 删除
    int deleteChatSeller(int id);

    int addChatContent(ChatContent chatContent);
}
